<!DOCTYPE html>
<html>

<head>

    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>H+ 后台主题UI框架 - 空白页</title>
    <meta name="keywords" content="">
    <meta name="description" content="">

    <link rel="shortcut icon" href="favicon.ico"> 
    <link href="__STATIC__/layout/css/bootstrap.min.css?v=3.3.6" rel="stylesheet">
    <link href="__STATIC__/layout/css/font-awesome.css?v=4.4.0" rel="stylesheet">
     <!-- jqgrid-->
    <link href="__STATIC__/layout/css/animate.css" rel="stylesheet">
    <link href="__STATIC__/layout/css/style.css?v=4.1.0" rel="stylesheet">
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
      <script src="__STATIC__/layout/js/jquery.min.js?v=2.1.4"></script>
    <script src="__STATIC__/sc/js/page.js"></script>
    <style>
       .radio-inline input[type=radio] {
            margin-top: 4px
        }
    </style>
</head>

<body style="color:#333;padding:3px;" class="x_sorll">
    <!-- 标题 -->
    <div class="page-heade">
      <h2 class="title_color text-center">结案明细表</h2>
    </div>
    <!-- 标题 -->
    <div >
     <form action="#" method="post" class="form-inline formpage" id="form_check">
               <input type="hidden" value='{$page}' name="page" id="page-go"/>
                      <input type="hidden" value='{$list}' name="list" id="list-go"/>
      <table class="row-margin-top tab-content table-bordered table" border="1">
          <tr>
            <td>
               <div class="form-group">
                    <label for="" class="form-label">一级考核期：</label>
                        <select name="cainian" id="cainian" style="min-width: 140px;width: 140px" class="form-control">
                            {volist name="cainian" id="se"}
                              {if $data.cainian==$se.id}
                              <option value="{$se.id}" selected>{$se.title}</option>
                              {else/}
                                <option value="{$se.id}">{$se.title}</option>
                              {/if}
                            {/volist}
                     </select>
                      <select name="kaohe1" id="kaohe1" style="min-width: 140px;width: 140px" class="form-control">
                            {volist name="kaohe1" id="se"}
                            {if $data.kaohe1==$se.id}
                             <option pid="{$se.cid}" value="{$se.id}" selected>{$se.title}</option>
                            
                            {else/}
                            <option pid="{$se.cid}" value="{$se.id}">{$se.title}</option>
                            {/if}
                            {/volist}
                     </select>
               </div>
                  <button class="btn btn-info query" id="check" >查询</button>
                <button class="btn btn-info LendExcel" type="button" onclick="daochu({$data.kaohe1})">导出补货明细表</button>
                 <span style="float: right;margin-top: 10px">单位：元</span>
            </td>
          </tr>
      </table>
    
      <table class="table table-striped row-margin-top table-bordered text-center bud_hei">
          <tr class="info">
            <th class="text-center">会计年度期间</th>
            <th class="text-center">公司代码</th>
            <th class="text-center">工厂</th>
            <th class="text-center">销售组织</th>
            <th class="text-center">配销通路</th>
            <th class="text-center">部门</th>
            <th class="text-center">客户</th>
            <th class="text-center">促销案料号</th>
            <th class="text-center">补货料号</th>
            <th class="text-center">业务人员</th>
            <th class="text-center">专案代码</th>
            <th class="text-center">结案流水号</th>
            <th class="text-center">费用类别</th>
            <th class="text-center">补货数量</th>
            <th class="text-center">促销起始日</th>
            <th class="text-center">促销截止日</th>
          </tr>
          {volist name="apply" id="vo"}
            <tr>
               <td>{$ctitle}-{$k1title}</td>
               <td>{$vo.gongsi}</td>
               <td>{$vo.gongchang}</td>
               <td>{$vo.zuzhi}</td>
               <td>{$vo.xiaolu}</td>
               <td>{$vo.bumen}</td>
               <td>{$vo.jxs_no}</td>
               <td>{$vo.ap_no}</td>
               <td>{$vo.o_no}</td>
               <td>{$vo.em_name}</td>
               <td>{$vo.ap_no}_{$vo.apd_no}</td>
               <td>{$vo.ahp_no}_{$vo.ahd_no}</td>
               <td>{$vo.type}</td>
               <td>{$vo.prod_jine}</td>
               <td>{$vo.start}</td>
               <td>{$vo.end}</td>
            </tr>
          {/volist}
      </table>
           <h5 class="text-center" id="pagesc" style="font-size: 16px;font-weight: 500">
            <script>
                            $(function(){
                                pageSC("pagesc",{$sum},{$page},{$maxpage})
                            })
                        </script>
                         每页显示
           <select id="pagesize">
                        <option value='20' {if condition="$list eq 20"}selected{/if}>20条</option>
                        <option value='40'{if condition="$list eq 40"}selected{/if}>40条</option>
                        <option value='50'{if condition="$list eq 50"}selected{/if}>50条</option>

            </select>
        </h5>
</form>
    </div>
    <!-- 全局js -->
    <script src="__STATIC__/layout/js/bootstrap.min.js?v=3.3.6"></script>
    <!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
    <script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
     <script src="__STATIC__/layout/js/common.js"></script>
    <script>
         $(document).ready(function(){
              hiddens();
            var $ObjectNum =$(".ObjectNum");
               toNum($ObjectNum);
        })

                            //翻页
      
        $("#check").click(function(){
              $("#page-go").val(1);
              $(".formpage").submit();
        })
        $("#clear_check").click(function(){
            $("input[type='text']").val("");
            $("select").val(0);
            $("#page-go").val(1);
            $("input[type='checkbox']").prop("checked",false);
             $(".formpage").submit();
        })
         //三级联动
    $("#cainian").change(function(){
        var cid=$("#cainian").val();
      $("#kaohe1>option[pid='"+cid+"']").show();
      $("#kaohe1>option[pid!='"+cid+"']").hide();
      $("#kaohe1>option[pid='"+cid+"']").eq(0).prop("selected",true);
   
    })
     //开启隐藏
    function hiddens(){
      var cid=$("#cainian").val();
      $("#kaohe1>option[pid='"+cid+"']").show();
      $("#kaohe1>option[pid!='"+cid+"']").hide();
   
    }
        function daochu(kaohe1){
      window.open("{:url('daochubuhuo')}?kaohe1="+kaohe1);
    }  
    </script>
</body>

</html>
